package com.arch.dev.client.vo;

import java.util.Date;

import com.google.gwt.view.client.ProvidesKey;

public class PdfVO extends BaseVO  {
	
	private String url;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	private String name;

	public String getName() {

		return name;

	}

	public void setName(String name) {

		this.name = name;
		//setUrl("servlet/pdf/GeneratePdf?pdfname=" + name);
		setUrl("servlet/generated/pdf?fileName=" + name);
		
	}

	public Date getDate() {

		return date;

	}

	public void setDate(Date date) {

		this.date = date;

	}

	private Date date;

	public PdfVO() {

	}

	public PdfVO(String name, Date date) {

		setName(name);

		this.date = date;

	}
	
	/**
	 * 
	 * The key provider that provides the unique ID of a contact.
	 */

	public static final ProvidesKey<PdfVO> KEY_PROVIDER = new ProvidesKey<PdfVO>() {

		
		public Object getKey(PdfVO item) {

			return item == null ? null : item.getId();

		}

	};

}